'use strict';

const BaseController = require('../base');

class BannerController extends BaseController {
  static get serviceName() {
    return 'business.comment';
  }
  getPageQuery(query) {
    let where = {}
    if (query.news_id) {
      where.news_id = query.news_id
    }
    if (query.type) {
      where.type = query.type
    }
    if (query.product_id) {
      where.product_id = query.product_id
    }
    return where
  }
}

module.exports = BannerController;
